<?php

namespace App\Admin\Tools\Stuff;

use Encore\Admin\Grid\Tools\AbstractTool;

class StuffStatusTransTool extends AbstractTool
{
    private int $id;
    private string|null $name;
    private string|null $username;
    private bool $status;

    public function __construct(int $id, string|null $name = null, string|null $username = null, bool $status)
    {
        $this->id = $id;
        $this->name = $name;
        $this->username = $username;
        $this->status = $status;
    }

    public function render()
    {
        return view('stuff.status_trans', [
            'id' => $this->id,
            'name' => $this->name,
            'username' => $this->username,
            'status' => $this->status
        ]);
    }
}
